Platform Explorer / Nuxeo Platform 2021.7

Contribution org.nuxeo.ecm.core.LifecycleCoreExtensions--lifecycle

This contribution is part of XML component org.nuxeo.ecm.core.LifecycleCoreExtensions inside nuxeo-core-2021.7.15.jar /OSGI-INF/LifeCycleCoreExtensions.xml

Documentation

Nuxeo core default life cycle definition.

Extension Point

Extension point lifecycle of component LifeCycleService.

Registration Order

1
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <lifecycle defaultInitial="project" name="default">
          <transitions>
            <transition destinationState="approved" name="approve">
              <description>Approve the content</description>
            </transition>
            <transition destinationState="obsolete" name="obsolete">
              <description>Content becomes obsolete</description>
            </transition>
            <transition destinationState="deleted" name="delete">
              <description>Move document to trash (temporary delete)</description>
            </transition>
            <transition destinationState="project" name="undelete">
              <description>Recover the document from trash</description>
            </transition>
            <transition destinationState="project" name="backToProject">
              <description>Recover the document from trash</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" initial="true" name="project">
              <transitions>
                <transition>approve</transition>
                <transition>obsolete</transition>
                <transition>delete</transition>
              </transitions>
            </state>
            <state description="Content has been validated" name="approved">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Content is obsolete" name="obsolete">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Document is deleted" name="deleted">
              <transitions>
                <transition>undelete</transition>
              </transitions>
            </state>
          </states>
        </lifecycle>

    Recover the document from trash

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <documentation>Nuxeo core default life cycle definition.</documentation>

    <lifecycle defaultInitial="project" name="default">
      <transitions>
        <transition destinationState="approved" name="approve">
          <description>Approve the content</description>
        </transition>
        <transition destinationState="obsolete" name="obsolete">
          <description>Content becomes obsolete</description>
        </transition>
        <transition destinationState="deleted" name="delete">
          <description>Move document to trash (temporary delete)</description>
        </transition>
        <transition destinationState="project" name="undelete">
          <description>Recover the document from trash</description>
        </transition>
        <transition destinationState="project" name="backToProject">
          <description>Recover the document from trash</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" initial="true" name="project">
          <transitions>
            <transition>approve</transition>
            <transition>obsolete</transition>
            <transition>delete</transition>
          </transitions>
        </state>
        <state description="Content has been validated" name="approved">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Content is obsolete" name="obsolete">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Document is deleted" name="deleted">
          <transitions>
            <transition>undelete</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>
  </extension>